public Collection getCollectionThatAccepts(MimeType... types) { Collection collection = null; for (Workspace workspace : getWorkspaces()) { collection = workspace.getCollectionThatAccepts(types); if (collection != null) break; } return collection; }
public Collection getCollectionThatAccepts(String... types) { Collection collection = null; for (Workspace workspace : getWorkspaces()) { collection = workspace.getCollectionThatAccepts(types); if (collection != null) break; } return collection; }