In the following example, d1 must implement the java.lang.AutoCloseable interface.
class-id myClass.
method-id myMethod.
perform using d1 as string = "Hello" *> implement d1 as type java.lang.AutoCloseable
continue
end-perform.
end method.
end class.