* @see ResourceContainer#createResourceComponentProxy(Class, FacetLockType, long, boolean, boolean, boolean)
*/
@SuppressWarnings("unchecked")
public static <T> T getComponent(int resourceId, Class<T> facetInterface, FacetLockType lockType, long timeout,
boolean daemonThread, boolean onlyIfStarted, boolean transferInterrupt) throws PluginContainerException {
InventoryManager inventoryManager = PluginContainer.getInstance().getInventoryManager();
ResourceContainer resourceContainer = inventoryManager.getResourceContainer(resourceId);
if (resourceContainer == null) {
throw new PluginContainerException("Resource component container could not be retrieved for resource: "
+ resourceId);
}
return resourceContainer.createResourceComponentProxy(facetInterface, lockType, timeout, daemonThread,