]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA - cleaned up some cruft left over from the old hack to filter vocab items.
authorPatrick Schmitz <pschmitz@berkeley.edu>
Fri, 13 Nov 2009 20:18:54 +0000 (20:18 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Fri, 13 Nov 2009 20:18:54 +0000 (20:18 +0000)
services/vocabulary/service/src/main/java/org/collectionspace/services/vocabulary/VocabularyResource.java

index 9a2b00bfd327d8f414c00503bf8633fb873ed68e..50e78b096eb5a663aa6ccab53db1f58e3ce91944 100644 (file)
@@ -377,7 +377,6 @@ public class VocabularyResource extends AbstractCollectionSpaceResource {
                 @PathParam("csid") String parentcsid,
                 @Context UriInfo ui) {
          VocabularyitemsCommonList vocabularyItemObjectList = new VocabularyitemsCommonList();
-         RepositoryInstance repoSession = null;
          NuxeoClient client = null;
          try{
                 // Note that docType defaults to the ServiceName, so we're fine with that.
@@ -395,16 +394,6 @@ public class VocabularyResource extends AbstractCollectionSpaceResource {
              Response response = Response.status(
                      Response.Status.INTERNAL_SERVER_ERROR).entity("Index failed").type("text/plain").build();
              throw new WebApplicationException(response);
-         } finally {
-             if(repoSession != null) {
-                    try {
-                        // release session
-                        client.releaseRepository(repoSession);
-                    } catch (Exception e) {
-                        logger.error("Could not close the repository session", e);
-                        // no need to throw this service specific exception
-                    }
-             }
          }
          return vocabularyItemObjectList;
      }