fix for ticket 281

Fix for the ticket RESTWS-281