protected final <T> T getId(String name, Class<T> clazz) {
    Object[] entityIds = getAll(name + ".id");
    if (Arrays.isEmpty(entityIds)) entityIds = getAll(name + "Id");
    if (Arrays.isEmpty(entityIds)) entityIds = getAll("id");
    if (Arrays.isEmpty(entityIds)) return null;
    else {
      String entityId = entityIds[0].toString();
      int commaIndex = entityId.indexOf(',');
      if (commaIndex != -1) entityId = entityId.substring(0, commaIndex);
      return Params.converter.convert(entityId, clazz);
    }
  }
protected final < T > T getId ( String name , Class < T > clazz ) { Object [ ] entityIds = getAll ( name + ".id" ) ; if ( Arrays . isEmpty ( entityIds ) ) entityIds = getAll ( name + "Id" ) ; if ( Arrays . isEmpty ( entityIds ) ) entityIds = getAll ( "id" ) ; if ( Arrays . isEmpty ( entityIds ) ) return null ; else { String entityId = entityIds [ 0 ] . toString ( ) ; int commaIndex = entityId . indexOf ( ',' ) ; if ( commaIndex != - 1 ) entityId = entityId . substring ( 0 , commaIndex ) ; return Params . converter . convert ( entityId , clazz ) ; } }
Get entity's id from shortname.id,shortnameId,id

@param name
@param clazz