public static List<Person> findByName(final String name, final Integer startIndex, final Integer numberOfElementsInSpan) { if (name == null) { return Collections.EMPTY_LIST;
public static List<Person> findByName(final String name, final Integer startIndex, final Integer numberOfElementsInSpan) { final List<Person> personsList = findByName(name); if (startIndex != null && numberOfElementsInSpan != null && !personsList.isEmpty()) { int finalIndex = Math.min(personsList.size(), startIndex + numberOfElementsInSpan); return personsList.subList(startIndex, finalIndex);
    public static List<Person> findByName(final String name, final Integer startIndex,            final Integer numberOfElementsInSpan) {        if (name == null) {            return Collections.EMPTY_LIST;        }        final List<Person> personsList = findByName(name);        return (startIndex != null && numberOfElementsInSpan != null) ? personsList.subList(startIndex,                startIndex + numberOfElementsInSpan) : personsList;    }