*/
private WebResource.Builder prepareClient(String additionalResourceUrl)
{
final Client client = Client.create();
if (configuration.isAuthorisation()) {
client.addFilter(new HTTPBasicAuthFilter(
configuration.getAdminUser(),
configuration.getAdminPassword()));
}
client.addFilter(new CsrfProtectionFilter());
return client.resource(this.adminBaseUrl + additionalResourceUrl).accept(MediaType.APPLICATION_XML_TYPE).header("X-GlassFish-3", "ignore");