RegisterBlockFamilyFactory registerInfo = blockFamilyFactory.getAnnotation(RegisterBlockFamilyFactory.class);
String id = registerInfo.value();
logger.debug("Registering blockFamilyFactory {}", id);
try {
BlockFamilyFactory newBlockFamilyFactory = (BlockFamilyFactory) blockFamilyFactory.newInstance();
registry.setBlockFamilyFactory(id, newBlockFamilyFactory);
logger.debug("Loaded blockFamilyFactory {}", id);
} catch (InstantiationException | IllegalAccessException e) {
logger.error("Failed to load blockFamilyFactory {}", id, e);
}