{
Class<?> resourceClass = Class.forName(resource);
Resource annot = resourceClass.getAnnotation(Resource.class);
if (annot != null)
{
Device[] devices = annot.supportedDevices();
String resourceKey = annot.value();
if (devices == null || devices.length ==0)
{
addResource(resourceClass, resourceKey, Device.all);
}