Server Settings ClassCastException catch