is it possible to define a bean with the use of static final fields of CoreProtocolPNames class like this:
Or, as an alternative, using Spring EL directly in XML:
This has the additional advantage of working with namespace configuration: