TypeClass returnType = m.getReturnType();
if (returnType == null) {
dbStoredProcedure = new DbStoredProcedure(m.getName());
}
else {
dbStoredProcedure = new DbStoredFunction(m.getName());
DbStoredArgument dbStoredArgument = new DbStoredArgument(returnType.getName());
dbStoredArgument.setInOut(RETURN);
dbStoredArgument.setSeq(0);
dbStoredArgument.setJdbcType(returnType.getJdbcTypecode());
Name n = returnType.getNameObject();