FXMLLoader createCdiFXMLLoader(final InjectionPoint injectionPoint) {
final CdiFXMLLoader fxmlLoader = new CdiFXMLLoader();
final Annotated annotated = injectionPoint.getAnnotated();
final Class<?> declaringClass = injectionPoint.getMember().getDeclaringClass();
if (annotated.isAnnotationPresent(FXMLLoaderParams.class)) {
final FXMLLoaderParams annotation = annotated.getAnnotation(FXMLLoaderParams.class);
initializeFXMLLoader(fxmlLoader, declaringClass, annotation.location(), annotation.resources(), annotation.charset());
}
return fxmlLoader;
}