code: public boolean getFlag(int index)
     {
        return BooleanHelper.getBoolean((Boolean) getCachedValue(selectField(ResourceFieldLists.CUSTOM_FLAG, index)));
     }
docs: Retrieve a flag value.
  
  @param index flag index (1-20)
  @return flag value