code: private Long getSequence(String sequenceName)
      {
          Long result = null;
          // now lookup the sequence map for calling DB
          Map mapForDB = (Map) sequencesDBMap.get(getBrokerForClass()
                  .serviceConnectionManager().getConnectionDescriptor().getJcdAlias());
          if(mapForDB != null)
          {
              result = (Long) mapForDB.get(sequenceName);
          }
          return result;
      }
docs: Returns last used sequence value or <code>null</code> if no sequence
  was add for given sequence name.
  
  @param sequenceName Name of the sequence.
  @return Last used sequence value or <code>null</code>