final Resource resource;
final String libraryName = (String) component.getAttributes().get(JSFAttr.LIBRARY_ATTR);
if ((libraryName != null) && (libraryName.length() > 0))
{
resource = resourceHandler.createResource(resourceName, libraryName);
}
else
{
resource = resourceHandler.createResource(resourceName);
}