@Override
public boolean authenticate( String username,
String password,
Session session ) {
try {
final org.uberfire.security.Subject result = authenticationManager.authenticate( new UserPassSecurityContext( null, username, password ) );
if ( result != null ) {
session.setSubject( new SubjectWrapper( result ) );
}
return result != null;
} catch ( final Exception ignored ) {