(methodCall.getProcedureName().hasSchema())) {
// Qualified name is always a routine and an immediate error if not.
routine = ais.getRoutine(methodCall.getProcedureName().getSchemaName(),
methodCall.getProcedureName().getTableName());
if ((routine == null) || !context.isAccessible(routine.getName())) {
throw new NoSuchFunctionException(methodCall.getProcedureName().toString());
}
}
else if (!functionDefined.isDefined(methodCall.getMethodName())) {
// Unqualified only if not a built-in function and error deferred.
routine = ais.getRoutine(defaultSchemaName, methodCall.getMethodName());