if (executionPeriod.getState() == PeriodState.CURRENT) {
if (executionPeriod.getState().equals(PeriodState.CURRENT)) {
    public static ExecutionPeriod readActualExecutionPeriod() {        for (final ExecutionPeriod executionPeriod : RootDomainObject.getInstance()                .getExecutionPeriodsSet()) {            if (executionPeriod.getState() == PeriodState.CURRENT) {                return executionPeriod;            }        }        return null;    }