How to change a method's behavior according to the application which is calling it?
<p>I have a common <code>jar</code> that uses some unmarshaling of a <code>String</code> object. The method should act differently depending on which application it is called from, how can I do that besides from the fact that I can identify the application by trying to load some unique class it has (don't like that). Is there some design pattern that solves this issue?</p>
