in src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java [298:306]
public void addJavaAnnotationLibrary() throws IOException {
String javaLibPath = workerDirectory + Constants.JAVA_LIBRARY_DIRECTORY;
File javaLib = new File(javaLibPath);
if (!javaLib.exists()) throw new FileNotFoundException("Error loading java annotation library jar, location doesn't exist: " + javaLibPath);
File[] files = javaLib.listFiles(file -> file.getName().contains(Constants.JAVA_LIBRARY_ARTIFACT_ID) && file.getName().endsWith(".jar"));
if (files.length == 0) throw new FileNotFoundException("Error loading java annotation library jar, no jar find from path: " + javaLibPath);
if (files.length > 1) throw new FileNotFoundException("Error loading java annotation library jar, multiple jars find from path: " + javaLibPath);
classLoaderProvider.addWorkerUrl(files[0].toURI().toURL());
}