private void buildGetStorageResponse(MockCloseableHttpResponse response,URI uri) throws JAXBException {
  Pattern pattern=Pattern.compile("/herd-app/rest/storages/(.*)");
  Matcher matcher=pattern.matcher(uri.getPath());
  if (matcher.find()) {
    Storage storage=getNewStorage(matcher.group(1));
    response.setEntity(getHttpEntity(storage));
  }
}

private void buildGetStorageResponse ( MockCloseableHttpResponse response , URI uri ) throws JAXBException { Pattern pattern = Pattern . compile ( "/herd-app/rest/storages/(.*)" ) ; Matcher matcher = pattern . matcher ( uri . getPath ( ) ) ; if ( matcher . find ( ) ) { Storage storage = getNewStorage ( matcher . group ( 1 ) ) ; response . setEntity ( getHttpEntity ( storage ) ) ; } }
builds a get storage response .
