Collection <FunctionMethod> methods = new ArrayList<FunctionMethod>();
if (udf != null) {
try {
methods.addAll(FunctionMetadataReader.loadFunctionMethods(TranslationHelper.class.getResource(udf).openStream()));
} catch (JAXBException e) {
throw new TeiidRuntimeException("failed to load UDF"); //$NON-NLS-1$
} catch (IOException e) {
throw new TeiidRuntimeException("failed to load UDF"); //$NON-NLS-1$
}
}
if (pushdowns != null) {
methods.addAll(pushdowns);
}