public CFSecuritySecDeviceBuff lockBuff(
     CFSecurityAuthorization Authorization, CFSecuritySecDevicePKey PKey) {
   final String S_ProcName = "lockBuff";
   CFSecuritySecDeviceBuff buff = readDerived(Authorization, PKey);
   if ((buff != null) && (!buff.getClassCode().equals("SDEV"))) {
     buff = null;
   }
   return (buff);
 }
 public CFSecuritySecDeviceBuff readBuffByIdIdx(
     CFSecurityAuthorization Authorization, UUID SecUserId, String DevName) {
   final String S_ProcName = "CFAsteriskRamSecDevice.readBuffByIdIdx() ";
   CFSecuritySecDeviceBuff buff = readDerivedByIdIdx(Authorization, SecUserId, DevName);
   if ((buff != null) && buff.getClassCode().equals("SDEV")) {
     return ((CFSecuritySecDeviceBuff) buff);
   } else {
     return (null);
   }
 }
 public CFSecuritySecDeviceBuff[] readAllBuff(CFSecurityAuthorization Authorization) {
   final String S_ProcName = "CFAsteriskRamSecDevice.readAllBuff";
   CFSecuritySecDeviceBuff buff;
   ArrayList<CFSecuritySecDeviceBuff> filteredList = new ArrayList<CFSecuritySecDeviceBuff>();
   CFSecuritySecDeviceBuff[] buffList = readAllDerived(Authorization);
   for (int idx = 0; idx < buffList.length; idx++) {
     buff = buffList[idx];
     if ((buff != null) && buff.getClassCode().equals("SDEV")) {
       filteredList.add(buff);
     }
   }
   return (filteredList.toArray(new CFSecuritySecDeviceBuff[0]));
 }