@SuppressWarnings("BooleanMethodIsAlwaysInverted") private boolean pathMatches(AssignmentPath assignmentPath, List<OrderConstraintsType> definedOrderConstraints) { if (assignmentPath == null) { throw new IllegalStateException("Check this. Assignment path is null."); } if (assignmentPath.isEmpty()) { throw new IllegalStateException("Check this. Assignment path is empty."); } return assignmentPath.matches(definedOrderConstraints); }
if (assignmentPath.isEmpty()) { throw new ExpressionEvaluationException("Empty assignment path variable in "+desc+"; the expression may be used in a wrong place. It is only supposed to work in a role.");