Totally Newbie question

I have installed Openfire 3.9.3

I have download and installed 2.6.3

I have create a couple of test users in openfire which are able to communicate with each other and recieve presence updates.

However, when I have tried to implement the Asterisk-IM pluggin:

I am recieving a log in faillure

also the instructions state to do the following but do not say exactly where to actually do them

Client API

The client API first requires that the Asterisk-IM server plugin is installed. To initialize the client do the following:

XMPPConnection conn = new XMPPConnection("myserver.foo.com", "user", "password"); PhoneClient client = new PhoneClient(conn);
Note that the XMPPConnection passed in must be authenticated. If an unauthenticated connection is passed in an exception will be thrown.

What file does this code go into?

Where exactly did you find these instructions? It looks more like a documentation how to create a new client, than to setup one.