}
private static Greeting createGreeting(MaskTree projection, PathKeys keys)
{
Greeting greeting = new Greeting();
if (projection != null)
{
greeting.setMessage(PROJECTION_MESSAGE);
}
else
{
greeting.setMessage(NO_PROJECTION_MESSAGE);
}
if (keys.get(ID) == null)
{
greeting.setTone(Tone.INSULTING);
}
else
{
greeting.setTone(Tone.FRIENDLY);
}
return greeting;
}