Resource[] getResources(Device device) throws RegistrationException { try { return registry.getConfiguration().getNamespace().getResources(device); } catch (ValidationException ex) { throw new RegistrationException("Resource discover error: " + ex.toString(), ex); } }