NetworkPlace np = NetworkPlaceDatabaseFactory.getInstance().getNetworkPlace(resourceId);
NetworkPlaceItem npi;
if (np != null) {
DAVProcessor processor = DAVServlet.getDAVProcessor(request);
SessionInfo sessionInfo = LogonControllerFactory.getInstance().getSessionInfo(request);
VFSStore store = processor.getRepository().getStore(np.getScheme());
if (store == null) {
log.warn("Store that handles '" + np.getScheme() + "' cannot be found.");
} else {
npi = new NetworkPlaceItem(np, store.getMountPath(np.getResourceName()), PolicyDatabaseFactory.getInstance()
.getPoliciesAttachedToResource(np, sessionInfo.getUser().getRealm()), np
.sessionPasswordRequired(sessionInfo));
return new WrappedFavoriteItem(npi, type);
}
}