Make the javax.security and javax.validation imports optional.