using solr in a java webapplication