{
try
{
Class<? extends SecondaryIndex> clazz = Class.forName(customClass).asSubclass(SecondaryIndex.class);
SecondaryIndex secondaryIndex = clazz.newInstance();
secondaryIndex.validate(metadata, getOptions());
}
catch (ClassNotFoundException | IllegalAccessException | InstantiationException e)
{
throw new InvalidRequestException("Class not found");
}