public Contentlet executeSafeFirst(){
  List<Contentlet> result=executeSafe();
  if (result.size() > 0) {
    return result.get(0);
  }
  return null;
}

public Contentlet executeSafeFirst ( ) { List < Contentlet > result = executeSafe ( ) ; if ( result . size ( ) > 0 ) { return result . get ( 0 ) ; } return null ; }
executes the query and returns the first result . can be used when you are sure that the query returns exactly one result , for instance when the query contains an identifier limitation or when the limit is set to 1 .
