@nmldiegues shouldn't this line be something like:

    if (compArgs.getParams().get(COLLECTION_CLASS_NAME_KEY) == null) {

Or at the most:

    if (compArgs.getParams().get(COLLECTION_CLASS_NAME_KEY) == null ||
        compArgs.getParams().get(COLLECTION_CLASS_NAME_KEY).isEmpty()) {