.retrieveEntityOwnedlist(SubaccountLine.class, pEntity)); if (pEntity.getSubaccType() == null && pEntity.getSubaccounts().size() > 0) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "wrong_paramaters"); if (pEntity.getSubaccType() != null && pEntity.getSubaccounts() .size() > 0 && !pEntity.getSubaccType().equals(pEntity .getSubaccounts().get(0).getSubaccType())) { throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER, "wrong_paramaters");