private static void authenticate()
throws MalformedURLException
{
connectionFactory = new AlfrescoConnectionFactory(CONSUMER_KEY, CONSUMER_SECRET);
OAuth2Parameters parameters = new OAuth2Parameters();
parameters.setRedirectUri(REDIRECT_URI);
parameters.setScope(Alfresco.DEFAULT_SCOPE);
parameters.setState(STATE);