public List<CashPoint> findCashPoints(final Location location, final String name, final boolean includeRetired, PagingInfo pagingInfo) throws APIException {
if (location == null) {
throw new NullPointerException("The department must be defined");
}
if (StringUtils.isEmpty(name)) {
<BUG>throw new IllegalArgumentException("The Cashpoint code must be defined.");
</BUG>
}
if (name.length() > 255) {
<BUG>throw new IllegalArgumentException("The Cashpoint code must be less than 256 characters.");
</BUG>
}

public List<CashPoint> findCashPoints(final Location location, final String name, final boolean includeRetired, PagingInfo pagingInfo) throws APIException {
if (location == null) {
throw new NullPointerException("The department must be defined");
}
if (StringUtils.isEmpty(name)) {
throw new IllegalArgumentException("The Cashpoint " + name + " code must be defined.");
}
if (name.length() > 255) {
throw new IllegalArgumentException("The Cashpoint " + name + " code must be less than 256 characters.");
}
