Buggy code:
@ Path ( "profile" ) @ Api ( value = "//profile" , description = "Operations<seq2seq4repair_space>about<seq2seq4repair_space>data" ) public class Profile { @ Context ServletContext context ; public String ProfileDataEndpoint ( ) { } public String ProfileSparqlUpdateEndpoint ( ) { } @ GET @ Produces ( "application//ld+json" ) @ ApiOperation ( value = "Get<seq2seq4repair_space>model<seq2seq4repair_space>from<seq2seq4repair_space>service" , notes = "More<seq2seq4repair_space>notes<seq2seq4repair_space>about<seq2seq4repair_space>this<seq2seq4repair_space>method" ) @ ApiResponses ( { @ ApiResponse ( code = 400 , message = "Invalid<seq2seq4repair_space>model<seq2seq4repair_space>supplied" ) , @ ApiResponse ( code = 404 , message = "Service<seq2seq4repair_space>not<seq2seq4repair_space>found" ) , @ ApiResponse ( code = 500 , message = "Internal<seq2seq4repair_space>server<seq2seq4repair_space>error" ) } ) public Response json ( @ ApiParam ( value = "Requested<seq2seq4repair_space>resource" , defaultValue = "default" ) @ QueryParam ( "graph" ) String graph ) { } @ POST @ ApiOperation ( value = "Updates<seq2seq4repair_space>graph<seq2seq4repair_space>in<seq2seq4repair_space>service<seq2seq4repair_space>and<seq2seq4repair_space>writes<seq2seq4repair_space>service<seq2seq4repair_space>description<seq2seq4repair_space>to<seq2seq4repair_space>default" , notes = "PUT<seq2seq4repair_space>Body<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>json-ld" ) @ ApiResponses ( { @ ApiResponse ( code = 204 , message = "Graph<seq2seq4repair_space>is<seq2seq4repair_space>saved" ) , @ ApiResponse ( code = 400 , message = "Invalid<seq2seq4repair_space>graph<seq2seq4repair_space>supplied" ) , @ ApiResponse ( code = 403 , message = "Illegal<seq2seq4repair_space>graph<seq2seq4repair_space>parameter" ) , @ ApiResponse ( code = 404 , message = "Service<seq2seq4repair_space>not<seq2seq4repair_space>found" ) , @ ApiResponse ( code = 500 , message = "Bad<seq2seq4repair_space>data?" ) } ) public Response postJson ( @ ApiParam ( value = "New<seq2seq4repair_space>graph<seq2seq4repair_space>in<seq2seq4repair_space>application//ld+json" , required = true ) String body , @ ApiParam ( value = "Graph<seq2seq4repair_space>to<seq2seq4repair_space>overwrite" , required = true ) @ QueryParam ( "graph" ) String graph ) { } @ PUT @ ApiOperation ( value = "Create<seq2seq4repair_space>new<seq2seq4repair_space>graph<seq2seq4repair_space>and<seq2seq4repair_space>update<seq2seq4repair_space>service<seq2seq4repair_space>description" , notes = "PUT<seq2seq4repair_space>Body<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>json-ld" ) @ ApiResponses ( { @ ApiResponse ( code = 201 , message = "Graph<seq2seq4repair_space>is<seq2seq4repair_space>created" ) , @ ApiResponse ( code = 204 , message = "Graph<seq2seq4repair_space>is<seq2seq4repair_space>saved" ) , @ ApiResponse ( code = 403 , message = "Illegal<seq2seq4repair_space>graph<seq2seq4repair_space>parameter" ) , @ ApiResponse ( code = 400 , message = "Invalid<seq2seq4repair_space>graph<seq2seq4repair_space>supplied" ) , @ ApiResponse ( code = 500 , message = "Bad<seq2seq4repair_space>data?" ) } ) public Response putJson ( @ ApiParam ( value = "New<seq2seq4repair_space>graph<seq2seq4repair_space>in<seq2seq4repair_space>application//ld+json" , required = true ) String body , @ ApiParam ( value = "Graph<seq2seq4repair_space>to<seq2seq4repair_space>overwrite" , required = true ) @ QueryParam ( "graph" ) String graph , @ ApiParam ( value = "Group" , required = true ) @ QueryParam ( "group" ) String group ) { } @ DELETE @ ApiOperation ( value = "Delete<seq2seq4repair_space>graph<seq2seq4repair_space>from<seq2seq4repair_space>service<seq2seq4repair_space>and<seq2seq4repair_space>service<seq2seq4repair_space>description" , notes = "Delete<seq2seq4repair_space>graph" ) @ ApiResponses ( { @ ApiResponse ( code = 204 , message = "Graph<seq2seq4repair_space>is<seq2seq4repair_space>deleted" ) , @ ApiResponse ( code = 403 , message = "Illegal<seq2seq4repair_space>graph<seq2seq4repair_space>parameter" ) , @ ApiResponse ( code = 404 , message = "No<seq2seq4repair_space>such<seq2seq4repair_space>graph" ) } ) public Response deleteJson ( @ ApiParam ( value = "Graph<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>deleted" , required = true ) @ QueryParam ( "graph" ) String graph ) { if ( graph . equals ( "default" ) ) { return Response . status ( 403 ) . build ( ) ; } try { String service = ProfileDataEndpoint ( ) ; Client client = Client . create ( ) ; WebResource webResource = client . resource ( service ) . queryParam ( "graph" , graph ) ; WebResource . Builder builder = webResource . header ( "Content-type" , "application//ld+json" ) ; ClientResponse response = builder . delete ( ClientResponse . class ) ; if ( ( response . getStatus ( ) ) != 204 ) { Logger . getLogger ( Profile . class . getName ( ) ) . log ( Level . WARNING , ( ( graph + "<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>deleted!<seq2seq4repair_space>Status<seq2seq4repair_space>" ) + ( response . getStatus ( ) ) ) ) ; return Response . status ( response . getStatus ( ) ) . build ( ) ; } if ( ! ( ( graph . equals ( "undefined" ) ) || ( graph . equals ( "default" ) ) ) ) { <START_BUG> ServiceDescriptionManager . deleteGraphDescription ( ProfileSparqlUpdateEndpoint ( ) , graph ) ; <END_BUG> } Logger . getLogger ( Profile . class . getName ( ) ) . log ( Level . INFO , ( graph + "<seq2seq4repair_space>deleted<seq2seq4repair_space>successfully!" ) ) ; return Response . status ( 204 ) . build ( ) ; } catch ( UniformInterfaceException | ClientHandlerException ex ) { Logger . getLogger ( Profile . class . getName ( ) ) . log ( Level . WARNING , "Expect<seq2seq4repair_space>the<seq2seq4repair_space>unexpected!" , ex ) ; return Response . status ( 400 ) . build ( ) ; } } No newline ; at end ; of file ; }

Fix:
ServiceDescriptionManager . deleteGraphDescription ( graph ) ;