*/
private static void validate(final AspectWerkzDefinitionImpl definition) {
if (System.getProperty("aspectwerkz.definition.validate", "false").equals("true")) {
// validate the definition
DefinitionValidator validator = new DefinitionValidator(definition);
validator.validate();
// handle errors in definition
List errors = validator.getErrorMessages();
for (Iterator i = errors.iterator(); i.hasNext();) {
String errorMsg = (String)i.next();