String userID = (String)((UserProfile)profile).getUserId();
if (lovDefinition instanceof QueryDetail) {
QueryDetail queryDetail = (QueryDetail) lovDefinition;
QueryDetail clone = queryDetail.clone();
clone.setQueryDefinition(queryDetail.getWrappedStatement(dependencies, executionInstance));
toReturn = userID + ";" + clone.toXML();
} else {
toReturn = userID + ";" + lovDefinition.toXML();
}
logger.debug("OUT: returning [" + toReturn + "]");
return toReturn;