ArrayList<FeatureResult> featureResults = null;
MapServiceInstance instance = (MapServiceInstance) mapService
.getMapServicePool().checkoutIdleInstance();
try {
featureResults = instance.find(layerIdArray, findParam);
} finally {
if (instance != null) {
mapService.getMapServicePool().checkinIdelInstance(
instance);
}