private List<String> fetchBlockCosIdList() throws SOSFailure {
  final String methodName="fetchBlockCosIdList(): ";
  log.trace(methodName + "Entry");
  final String BLOCK_COS_URI="/block/vpools";
  List<String> blockCosIdList=new ArrayList<String>();
  try {
    CoSList cosElemList=_client.queryObject(BLOCK_COS_URI,CoSList.class);
    if (cosElemList != null && cosElemList.getCosElements() != null) {
      for (      CoSElement elem : cosElemList.getCosElements()) {
        if (elem != null) {
          blockCosIdList.add(elem.getId());
        }
      }
    }
    log.trace(methodName + "Block CoS Ids: " + blockCosIdList);
    if (cosElemList != null && blockCosIdList != null) {
      log.trace(methodName + "Exit returning cos list of size[" + blockCosIdList.size()+ "]");
      return blockCosIdList;
    }
    log.trace(methodName + "Exit returning cos list of size[0]");
    return new ArrayList<String>();
  }
 catch (  NoSuchAlgorithmException e) {
    log.error(methodName + "NoSuchAlgorithmException occured",e);
    throw new SOSFailure(e);
  }
catch (  UniformInterfaceException e) {
    log.error(methodName + "UniformInterfaceException occured",e);
    throw new SOSFailure(e);
  }
}

private List < String > fetchBlockCosIdList ( ) throws SOSFailure { final String methodName = "fetchBlockCosIdList(): " ; log . trace ( methodName + "Entry" ) ; final String BLOCK_COS_URI = "/block/vpools" ; List < String > blockCosIdList = new ArrayList < String > ( ) ; try { CoSList cosElemList = _client . queryObject ( BLOCK_COS_URI , CoSList . class ) ; if ( cosElemList != null && cosElemList . getCosElements ( ) != null ) { for ( CoSElement elem : cosElemList . getCosElements ( ) ) { if ( elem != null ) { blockCosIdList . add ( elem . getId ( ) ) ; } } } log . trace ( methodName + "Block CoS Ids: " + blockCosIdList ) ; if ( cosElemList != null && blockCosIdList != null ) { log . trace ( methodName + "Exit returning cos list of size[" + blockCosIdList . size ( ) + "]" ) ; return blockCosIdList ; } log . trace ( methodName + "Exit returning cos list of size[0]" ) ; return new ArrayList < String > ( ) ; } catch ( NoSuchAlgorithmException e ) { log . error ( methodName + "NoSuchAlgorithmException occured" , e ) ; throw new SOSFailure ( e ) ; } catch ( UniformInterfaceException e ) { log . error ( methodName + "UniformInterfaceException occured" , e ) ; throw new SOSFailure ( e ) ; } }
returns list of file cos ids
