Updated component validator to work with java 6