in src/main/java/com/epam/grid/engine/provider/parallelenv/sge/SgeParallelEnvProvider.java [225:238]
private Path createPeRegistrationTmpFile(final PeRegistrationVO peRegistrationVO) {
final Context context = new Context();
context.setVariable(PE_NAME_FIELD, peRegistrationVO.getName());
final String slots = peRegistrationVO.getSlots() != null
? String.valueOf(peRegistrationVO.getSlots())
: peRegistrationDefaultSlots;
context.setVariable(SLOTS_FIELD, slots);
final String allocationRule = peRegistrationVO.getAllocationRule() != null
? peRegistrationVO.getAllocationRule()
: peRegistrationDefaultAllocationRule;
context.setVariable(ALLOCATION_RULE_FIELD, allocationRule);
return commandCompiler
.compileEntityConfigFile(getProviderType(), PE_REG_TEMPLATE_FILE, context);
}