core/src/main/java/com/orientechnologies/orient/core/command/script/OScriptResultSets.java
public static OScriptResultSet singleton(Object entity, OScriptTransformer transformer) {
    return new OScriptResultSet(Collections.singletonList(entity).iterator(), transformer);
  }
public static OScriptResultSet singleton(Object entity, OScriptTransformer transformer) {
    return new OScriptResultSet(Collections.singletonList(entity).iterator(), transformer);
  }
public static OScriptResultSet singleton ( Object entity , OScriptTransformer transformer ) { return new OScriptResultSet ( Collections . singletonList ( entity ) . iterator ( ) , transformer ) ; }
Result set with a single result;

@return
Result set with a single result ;