}
return null;
}
private Object doQuery() {
query qry = getMethod().getAnnotation(query.class);
String whereClause = qry.where();
String cleanWhereClause = whereClause.replaceAll(":this.", ":");
String queryString = "from "+getOriginalObject().getClass().getCanonicalName()+((whereClause.length()==0)?"":" where "+cleanWhereClause);
Query query = getEntityManager().createQuery(queryString);
if(whereClause.lastIndexOf(":this.")>0){
String[] whereCondition = whereClause.split(" ");