Java message formatting
<p>I am formatting my messages in a properties file, but in order to display the desired message fragments I need to validate the arguments... By validate I mean NOT NULL..</p>

<p>ex.
LOCATION_NOT_FOUND=Unable to find State: {0} {display only if {1} not null, city:{1}}.</p>

<p>desired output would be- "Unable to find State:New Jersey"
if city is not null - "Unable to find State:New Jersey, city:Trenton" </p>

<p>i was thinking about using {1,choice, notnull#city{1}}, but I have no clue if this is correct...</p>

<p>Thanks Guys!</p>
