loader.setLocation(declaringClass.getResource(location));
}
final String charset = fxmlLoaderParams.charset();
if (! charset.equals(FXMLLoaderParams.CHARSET_UNSPECIFIED)) {
loader.setCharset(Charset.forName(fxmlLoaderParams.charset()));
}
final String resources = fxmlLoaderParams.resources();
if (!resources.equals(FXMLLoaderParams.RESOURCES_UNSPECIFIED)) {
loader.setResources(ResourceBundle.getBundle(resources));