}
return entity;
}
public static EOStoredProcedure getRelatedStoredProcedure(Object obj) {
EOStoredProcedure storedProcedure = null;
if (obj instanceof EOStoredProcedure) {
storedProcedure = (EOStoredProcedure) obj;
} else if (obj instanceof EOArgument) {
storedProcedure = ((EOArgument) obj).getStoredProcedure();
}