How to re-factor a common String comparison Code below is scattered all over the code base : 

if (StringUtils.contains(manager.getName, "custom")){

}


It just checks if an object attribute contains a predefined String and if it does, enter condition.

Is there a more elegant way of achieving above, perhaps using an enum?
It seems data envy. I'd create nameContains method in the Manager class.

public boolean nameContains(final String searchText) {
    if (StringUtils.contains(name, searchText)) {
        return true;
    }
    return false;
}

Instance variables (fields) should be private. See: why instance variables in java are always private