if (workspaceDeclarationManager != null) {
ResourceStore resourceStore = workspaceDeclarationManager.getResourceStore();
for (Iterator<WorkspaceResource> it = resourceStore.getResourceIterator(); it.hasNext(); ) {
final WorkspaceResource decl = it.next();
if (workspaceName.equals(decl.getIdentifier().getFeatureName().getName())) {
newStreamProvider = new WorkspaceDeclaration.StreamProvider() {
public String getName() {
return decl.getIdentifier().getFeatureName().getName();
}
public String getLocation() {
return workspaceLocation;
}
public InputStream getInputStream(VaultRegistry vaultRegistry, Status status) {
return decl.getInputStream(status);
}
public String getDebugInfo(VaultRegistry vaultRegistry) {
return decl.getDebugInfo();
}
@Override
public String toString() {
return getName();