Add fromHeader attribute for REST interface, and handles it server side