Code cleanup:

1. Removing unused imports.
2. Removing unused functions.
3. Removing unused variables.
4. Making methods static when possible.
5. Removing JRegex from the dependencies as it will not be used.
Performing a facets check on attributes.