@Override public void applyInitRules(Service36400242Form form) throws RuleException { Person person = getPerson(form); if ("M".equals(person.getSex().name())) { form.setSex("Мужской"); } if ("F".equals(person.getSex().name())) { form.setSex("Женский"); } form.setPassport_type(person.getMainDocument().getDocumentTypeName()); }