Clean up Java EE rules.